package io.github.yotta.common.api.exception;

/**
 * @author yotta
 * @date 2022/11/7 18:00
 */
public interface ErrorCode {

    String name();

    String getCode();

    String getMessage();

    default String description() {
        return this.getCode() + '-' + this.getMessage();
    }


}
